package com.shxzz.shortlink.project.common.constant;

/**
 * @author shxzz
 * @create 2023-12-20-20:21
 * @description Redis 缓存常量类
 */
public class RedisCacheConstant {
    private RedisCacheConstant() {
    }

    /**
     * 短链接跳转缓存
     */
    public static final String LINK_GOTO_KEY = "short-link:link-goto:";

    /**
     * 短链接跳转空缓存
     */
    public static final String LINK_GOTO_NULL_KEY = "short-link:link-goto-null:";

    /**
     * 短链接跳转查询锁
     */
    public static final String LOCK_LINK_GOTO_SELECT = "short-link:lock:goto-select:";

    /**
     * 短链接访问 UIP 记录缓存
     */
    public static final String LINK_ACCESS_UIP_KEY = "short-link:access:uip:";

    /**
     * 短链接访问 UV 记录缓存
     */
    public static final String LINK_ACCESS_UV_KEY = "short-link:access:uv:";
}
